curl --request POST \
--url https://api.sophra.org/api/cortex/analytics/search \
--header 'Content-Type: application/json' \
--data '
{
"query": "machine learning optimization",
"searchType": "hybrid",
"totalHits": 150,
"took": 234,
"sessionId": "sess_abc123",
"facets": {
"authors": [
"John Smith",
"Jane Doe"
],
"tags": [
"AI",
"ML"
],
"yearPublished": {
"min": 2020,
"max": 2024
},
"source": [
"arXiv",
"IEEE"
],
"selectedFilters": {
"contentType": "research-paper",
"language": "en",
"hasCode": true
}
}
}
'{}curl --request POST \
--url https://api.sophra.org/api/cortex/analytics/search \
--header 'Content-Type: application/json' \
--data '
{
"query": "machine learning optimization",
"searchType": "hybrid",
"totalHits": 150,
"took": 234,
"sessionId": "sess_abc123",
"facets": {
"authors": [
"John Smith",
"Jane Doe"
],
"tags": [
"AI",
"ML"
],
"yearPublished": {
"min": 2020,
"max": 2024
},
"source": [
"arXiv",
"IEEE"
],
"selectedFilters": {
"contentType": "research-paper",
"language": "en",
"hasCode": true
}
}
}
'{}The search query
Type of search performed
text, vector, hybrid Session identifier
Total number of search results
Time taken to perform the search in milliseconds
Show child attributes
Search analytics logged successfully